package com.pro.back.config;

/**
 * @Author: jingwenjuan
 * @Description:
 */
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class WebMvcConfigurer extends WebMvcConfigurerAdapter {

    /**
     * 设置url可以访问静态资源
     */
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/upload/**").addResourceLocations("file:/Users/wu-xzh/Documents/workspace-personal/BS/bs-proj/BS-Mawson/net-device-manage/net-device-manage-service/upload/");
    }

}